package com.justgame.project.service.art.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.justgame.project.cloud.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
*
* 文章评论表
*
* @tableName art_page_comment
* @author Zwb
*/
@Data
@TableName("art_page_comment")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="ArtPageComment对象", description="文章评论表")
public class ArtPageComment extends BaseEntity {
    /**
     * 父级评论
     */
    @ApiModelProperty(value = "父级评论")
    private Long parentId;

    /**
     * 族谱
     */
    @ApiModelProperty(value = "族谱")
    private String ancestors;

    /**
     * 文章信息
     */
    @ApiModelProperty(value = "文章信息")
    private Long pageId;

    /**
     * 内容
     */
    @ApiModelProperty(value = "内容")
    private String content;

    /**
     * 类型
     */
    @ApiModelProperty(value = "类型")
    private Type type;

    /**
     * 是否被显性删除
     */
    @ApiModelProperty(value = "是否被显性删除")
    private Boolean isRemove;

    /**
     * 是否匿名
     */
    @ApiModelProperty(value = "是否匿名")
    private Boolean isPixelate;

    /**
     * 类型 枚举值
     */
    public enum Type{
        /**
         * 楼主
         */
        LANDLORD,
        /**
         * 回复
         */
        FOLLOW
    }

}
